
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>logback中文网|第一章：logback 介绍</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="logback中文网包含了logback中文文档，最新资讯，应用案例等。logback 继承自 log4j，它建立在有十年工业经验的日志系统之上。它比其它所有的日志系统更快并且更小，包含了许多独特并且有用的特性。"><meta name="keywords" content="logback中文文档, logback api文档, logback log4j,springboot logback,logback日志类型">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="02第二章架构.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2" data-path="01第一章logback介绍.html">
            
                <a href="01第一章logback介绍.html">
            
                    
                    第一章：logback 介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="02第二章架构.html">
            
                <a href="02第二章架构.html">
            
                    
                    第二章：架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="03第三章logback的配置.html">
            
                <a href="03第三章logback的配置.html">
            
                    
                    第三章：logback 的配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="04第四章Appenders.html">
            
                <a href="04第四章Appenders.html">
            
                    
                    第四章：Appenders
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="05第五章Encoder.html">
            
                <a href="05第五章Encoder.html">
            
                    
                    第五章：Encoder
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="06第六章Layouts.html">
            
                <a href="06第六章Layouts.html">
            
                    
                    第六章：Layouts
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="07第七章Filters.html">
            
                <a href="07第七章Filters.html">
            
                    
                    第七章：Filters
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="08第八章MDC.html">
            
                <a href="08第八章MDC.html">
            
                    
                    第八章：MDC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="09第九章日志隔离.html">
            
                <a href="09第九章日志隔离.html">
            
                    
                    第九章：日志隔离
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="10第十章JMX配置器.html">
            
                <a href="10第十章JMX配置器.html">
            
                    
                    第十章：JMX 配置器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="11第十一章Joran.html">
            
                <a href="11第十一章Joran.html">
            
                    
                    第十一章：Joran
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="12第十二章Groovy配置.html">
            
                <a href="12第十二章Groovy配置.html">
            
                    
                    第十二章：Groovy 配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="13第十三章从log4j迁移.html">
            
                <a href="13第十三章从log4j迁移.html">
            
                    
                    第十三章：从 log4j 迁移
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="14第十四章Receivers.html">
            
                <a href="14第十四章Receivers.html">
            
                    
                    第十四章：Receivers
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="15第十五章使用SSL.html">
            
                <a href="15第十五章使用SSL.html">
            
                    
                    第十五章：使用 SSL
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >第一章：logback 介绍</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x4EC0;&#x4E48;&#x662F;-logback">&#x4EC0;&#x4E48;&#x662F; logback</h2>
<p>logback &#x7EE7;&#x627F;&#x81EA; log4j&#xFF0C;&#x5B83;&#x5EFA;&#x7ACB;&#x5728;&#x6709;&#x5341;&#x5E74;&#x5DE5;&#x4E1A;&#x7ECF;&#x9A8C;&#x7684;&#x65E5;&#x5FD7;&#x7CFB;&#x7EDF;&#x4E4B;&#x4E0A;&#x3002;&#x5B83;&#x6BD4;&#x5176;&#x5B83;&#x6240;&#x6709;&#x7684;&#x65E5;&#x5FD7;&#x7CFB;&#x7EDF;&#x66F4;&#x5FEB;&#x5E76;&#x4E14;&#x66F4;&#x5C0F;&#xFF0C;&#x5305;&#x542B;&#x4E86;&#x8BB8;&#x591A;&#x72EC;&#x7279;&#x5E76;&#x4E14;&#x6709;&#x7528;&#x7684;&#x7279;&#x6027;&#x3002;</p>
<h2 id="&#x5929;&#x624D;&#x7B2C;&#x4E00;&#x6B65;">&#x5929;&#x624D;&#x7B2C;&#x4E00;&#x6B65;</h2>
<h3 id="&#x8981;&#x6C42;">&#x8981;&#x6C42;</h3>
<p>logback-classic &#x6A21;&#x5757;&#x9700;&#x8981;&#x5728; classpath &#x6DFB;&#x52A0; slf4j-api.jar&#x3001;logback-core.jar &#x4EE5;&#x53CA; logback-classic.jar&#x3002;</p>
<p><em>Example 1.1: Basic template for logging</em></p>
<pre><code class="lang-java"><span class="hljs-keyword">package</span> chapters.introduction;

<span class="hljs-keyword">import</span> org.slf4j.Logger;
<span class="hljs-keyword">import</span> org.slf4j.LoggerFactory;

<span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">HelloWorld1</span> </span>{

    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] args)</span> </span>{
        Logger logger = LoggerFactory.getLogger(<span class="hljs-string">&quot;chapters.introduction.HelloWorld1&quot;</span>);
        logger.debug(<span class="hljs-string">&quot;hello world&quot;</span>);
    }
}
</code></pre>
<p>&#x7C7B; <code>HelloWorld1</code> &#x5B9A;&#x4E49;&#x5728;&#x5305; <code>chapters.introduction</code> &#x4E2D;&#xFF0C;&#x5B83;&#x5BFC;&#x5165;&#x4E86;&#x4E24;&#x4E2A;&#x7C7B; <code>Logger</code>&#x3001;<code>LoggerFactory</code>&#xFF0C;&#x8FD9;&#x4E24;&#x4E2A;&#x7C7B;&#x5B9A;&#x4E49;&#x5728; SLF4J API &#x4E2D;&#xFF0C;&#x5728; org.slf4j &#x5305;&#x4E2D;&#x3002;</p>
<p>&#x5728;&#x8FD9;&#x4E2A;&#x4F8B;&#x5B50;&#x4E2D;&#xFF0C;<code>main()</code> &#x5305;&#x542B;&#x4E86;&#x4E00;&#x4E2A; DEBUG &#x7EA7;&#x522B;&#x7684;&#x65E5;&#x5FD7;&#x8BED;&#x53E5;&#xFF0C;&#x8F93;&#x51FA;&#x4FE1;&#x606F;&#x4E3A; &quot;hello world&quot;</p>
<p>&#x8FD0;&#x884C; <code>HelloWord1</code> &#x5C06;&#x4F1A;&#x5728;&#x63A7;&#x5236;&#x53F0;&#x770B;&#x5230;&#x4E00;&#x884C;&#x65E5;&#x5FD7;&#x3002;&#x7531;&#x4E8E; logback &#x9ED8;&#x8BA4;&#x7684;&#x914D;&#x7F6E;&#x7B56;&#x7565;&#xFF1A;&#x5F53;&#x6CA1;&#x6709;&#x9ED8;&#x8BA4;&#x7684;&#x914D;&#x7F6E;&#x65F6;&#xFF0C;logback &#x5C06;&#x4F1A;&#x5728; root logger &#x4E2D;&#x65B0;&#x589E;&#x4E00;&#x4E2A; <code>ConsoleAppender</code> </p>
<pre><code>11:58:56.662 [main] DEBUG chapters.introduction.HelloWorld1 - hello world
</code></pre><p>Logback &#x901A;&#x8FC7;&#x4E00;&#x4E2A;&#x5185;&#x90E8;&#x7684;&#x72B6;&#x6001;&#x7CFB;&#x7EDF;&#x6765;&#x62A5;&#x544A;&#x5B83;&#x672C;&#x8EAB;&#x7684;&#x72B6;&#x6001;&#x4FE1;&#x606F;&#x3002;&#x53D1;&#x751F;&#x5728; logback &#x751F;&#x547D;&#x5468;&#x671F;&#x4E2D;&#x7684;&#x4E8B;&#x4EF6;&#x53EF;&#x4EE5;&#x901A;&#x8FC7; <code>StatusManager</code> &#x6765;&#x83B7;&#x53D6;&#x3002;</p>
<p><em>Example: Printing Logger Status</em></p>
<pre><code class="lang-java"><span class="hljs-keyword">package</span> chapters.introduction;

<span class="hljs-keyword">import</span> org.slf4j.Logger;
<span class="hljs-keyword">import</span> org.slf4j.LoggerFactory;

<span class="hljs-keyword">import</span> ch.qos.logback.classic.LoggerContext;
<span class="hljs-keyword">import</span> ch.qos.logback.core.util.StatusPrinter;

<span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">HelloWorld2</span> </span>{

    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] args)</span> </span>{
        Logger logger = LoggerFactory.getLogger(<span class="hljs-string">&quot;chapters.introduction.HelloWorld2&quot;</span>);
        logger.debug(<span class="hljs-string">&quot;Hello world&quot;</span>);

        <span class="hljs-comment">// &#x6253;&#x5370;&#x5185;&#x90E8;&#x7684;&#x72B6;&#x6001;</span>
        LoggerContext lc = (LoggerContext)LoggerFactory.getILoggerFactory();
        StatusPrinter.print(lc);
    }
}
</code></pre>
<p>&#x8FD0;&#x884C;&#x7ED3;&#x679C;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-number">12</span>:<span class="hljs-number">23</span>:<span class="hljs-number">49.324</span> [main] DEBUG chapters.introduction.HelloWorld2 - Hello world
<span class="hljs-number">12</span>:<span class="hljs-number">23</span>:<span class="hljs-number">49</span>,<span class="hljs-number">258</span> |-INFO in ch.qos.logback.classic.LoggerContext[<span class="hljs-keyword">default</span>] - Could NOT find resource [logback-test.xml]
<span class="hljs-number">12</span>:<span class="hljs-number">23</span>:<span class="hljs-number">49</span>,<span class="hljs-number">258</span> |-INFO in ch.qos.logback.classic.LoggerContext[<span class="hljs-keyword">default</span>] - Could NOT find resource [logback.groovy]
<span class="hljs-number">12</span>:<span class="hljs-number">23</span>:<span class="hljs-number">49</span>,<span class="hljs-number">258</span> |-INFO in ch.qos.logback.classic.LoggerContext[<span class="hljs-keyword">default</span>] - Could NOT find resource [logback.xml]
<span class="hljs-number">12</span>:<span class="hljs-number">23</span>:<span class="hljs-number">49</span>,<span class="hljs-number">262</span> |-INFO in ch.qos.logback.classic.BasicConfigurator@<span class="hljs-number">2e5</span>d6d97 - Setting up <span class="hljs-keyword">default</span> configuration.
</code></pre>
<p>Logback &#x6CA1;&#x6709;&#x627E;&#x5230; <em>logback-test.xml</em> &#x548C; <em>logback.xml</em> &#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x6240;&#x4EE5;&#x901A;&#x8FC7;&#x9ED8;&#x8BA4;&#x7684;&#x914D;&#x7F6E;&#x7B56;&#x7565;-&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;&#x57FA;&#x672C;&#x7684; <code>ConsoleAppender</code> &#x6765;&#x8FDB;&#x884C;&#x914D;&#x7F6E;&#x3002;<code>Appender</code> &#x7C7B;&#x88AB;&#x770B;&#x4F5C;&#x4E3A;&#x8F93;&#x51FA;&#x7684;&#x76EE;&#x7684;&#x5730;&#x3002;Appenders &#x5305;&#x62EC; console&#xFF0C;files&#xFF0C;Syslog&#xFF0C;TCP Sockets&#xFF0C;JMS &#x7B49;&#x7B49;&#x5176;&#x5B83;&#x7684;&#x65E5;&#x5FD7;&#x8F93;&#x51FA;&#x76EE;&#x7684;&#x5730;&#x3002;&#x7528;&#x6237;&#x53EF;&#x4EE5;&#x6839;&#x636E;&#x81EA;&#x5DF1;&#x7684;&#x60C5;&#x51B5;&#x8F7B;&#x677E;&#x7684;&#x521B;&#x5EFA;&#x81EA;&#x5DF1;&#x7684; Appender&#x3002;</p>
<p>&#x5982;&#x679C;&#x53D1;&#x751F;&#x4E86;&#x9519;&#x8BEF;&#xFF0C;logback &#x4F1A;&#x81EA;&#x52A8;&#x5728;&#x63A7;&#x5236;&#x53F0;&#x6253;&#x5370;&#x81EA;&#x5DF1;&#x5185;&#x90E8;&#x7684;&#x72B6;&#x6001;&#x4FE1;&#x606F;&#x3002;</p>
<p>&#x524D;&#x9762;&#x7ED9;&#x7684;&#x4F8B;&#x5B50;&#x76F8;&#x5BF9;&#x7B80;&#x5355;&#x3002;&#x5B9E;&#x9645;&#x4E0A;&#x5728;&#x5927;&#x578B;&#x7684;&#x5E94;&#x7528;&#x4E2D;&#xFF0C;&#x65E5;&#x5FD7;&#x8BB0;&#x5F55;&#x4E0D;&#x4F1A;&#x6709;&#x592A;&#x5927;&#x7684;&#x533A;&#x522B;&#x3002;&#x65E5;&#x5FD7;&#x8BB0;&#x5F55;&#x7684;&#x4E00;&#x822C;&#x5F62;&#x5F0F;&#x4E0D;&#x4F1A;&#x6709;&#x6539;&#x53D8;&#xFF0C;&#x53EA;&#x662F;&#x914D;&#x7F6E;&#x65B9;&#x5F0F;&#x4F1A;&#x6709;&#x4E0D;&#x540C;&#x3002;&#x53EF;&#x80FD;&#x4F60;&#x60F3;&#x8981;&#x6839;&#x636E;&#x81EA;&#x5DF1;&#x7684;&#x9700;&#x6C42;&#x6765;&#x914D;&#x7F6E; logback&#xFF0C;&#x63A5;&#x4E0B;&#x6765;&#x7684;&#x7AE0;&#x8282;&#x4E2D;&#x5C06;&#x4F1A;&#x4ECB;&#x7ECD;&#x5982;&#x4F55;&#x8FDB;&#x884C;&#x914D;&#x7F6E;&#x3002;</p>
<p>&#x5728;&#x4E0A;&#x9762;&#x7684;&#x4F8B;&#x5B50;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x901A;&#x8FC7; <code>StatusPrinter.print()</code> &#x6253;&#x5370;&#x4E86; logback &#x81EA;&#x8EAB;&#x7684;&#x5185;&#x90E8;&#x72B6;&#x6001;&#x3002;logback &#x7684;&#x5185;&#x90E8;&#x72B6;&#x6001;&#x5BF9;&#x67E5;&#x627E; logback &#x76F8;&#x5173;&#x7684;&#x95EE;&#x9898;&#x975E;&#x5E38;&#x7684;&#x6709;&#x7528;&#x3002;</p>
<p>&#x901A;&#x8FC7;&#x5982;&#x4E0B;&#x7684;&#x4E09;&#x4E2A;&#x6B65;&#x9AA4;&#x53EF;&#x4EE5;&#x542F;&#x7528; logback &#x6765;&#x8BB0;&#x5F55;&#x65E5;&#x5FD7;&#xFF1A;</p>
<ol>
<li>&#x914D;&#x7F6E; logback &#x73AF;&#x5883;&#x3002;&#x4F60;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x7B80;&#x5355;&#x6216;&#x8005;&#x590D;&#x6742;&#x7684;&#x65B9;&#x5F0F;&#x6765;&#x505A;&#xFF0C;&#x8FD9;&#x4E2A;&#x5728;&#x540E;&#x9762;&#x4F1A;&#x53D9;&#x8FF0;&#x5230;&#x3002;</li>
<li>&#x5982;&#x679C;&#x4F60;&#x60F3;&#x5728;&#x6BCF;&#x4E2A;&#x7C7B;&#x4E2D;&#x6253;&#x5370;&#x65E5;&#x5FD7;&#xFF0C;&#x90A3;&#x4E48;&#x4F60;&#x9700;&#x8981;&#x5C06;&#x5F53;&#x524D;&#x7C7B;&#x7684;&#x5168;&#x79F0;&#x6216;&#x8005;&#x5F53;&#x524D;&#x7C7B;&#x5F53;&#x4F5C;&#x53C2;&#x6570;&#xFF0C;&#x8C03;&#x7528;  <code>org.slf4j.LoggerFactory.getLogger()</code> &#x65B9;&#x6CD5;&#x3002;</li>
<li>&#x4F7F;&#x7528;&#x5B9E;&#x4F8B; logger &#x6765;&#x8C03;&#x7528;&#x4E0D;&#x540C;&#x7684;&#x65B9;&#x6CD5;&#x6765;&#x6253;&#x5370;&#x65E5;&#x5FD7;&#x3002;&#x4F8B;&#xFF1A;debug()&#xFF0C;info()&#xFF0C;warn()&#xFF0C;error()&#x3002;&#x901A;&#x8FC7;&#x8FD9;&#x4E9B;&#x65B9;&#x6CD5;&#x5C06;&#x4F1A;&#x5728;&#x914D;&#x7F6E;&#x597D;&#x7684; appender &#x4E2D;&#x8F93;&#x51FA;&#x65E5;&#x5FD7;&#x3002;</li>
</ol>
<h2 id="&#x6784;&#x5EFA;-logback">&#x6784;&#x5EFA; logback</h2>
<p>logback &#x4F7F;&#x7528; Maven &#x4F5C;&#x4E3A;&#x6784;&#x5EFA;&#x5DE5;&#x5177;&#x3002;</p>
<p>&#x5982;&#x679C;&#x4F60;&#x5B89;&#x88C5;&#x4E86; Maven&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x5728; logback &#x7684;&#x89E3;&#x538B;&#x6587;&#x4EF6;&#x5939;&#x4E2D;&#x8FD0;&#x884C; <code>mvn install</code> &#x6765;&#x6784;&#x5EFA; logback &#x4EE5;&#x53CA;&#x5B83;&#x6240;&#x5305;&#x542B;&#x7684;&#x6A21;&#x5757;&#x3002;Maven &#x4F1A;&#x81EA;&#x52A8;&#x4E0B;&#x8F7D; logback &#x9700;&#x8981;&#x7684;&#x5176;&#x5B83;&#x7C7B;&#x5E93;&#x3002;</p>
<p>Logback &#x7684;&#x538B;&#x7F29;&#x5305;&#x5305;&#x542B;&#x4E86;&#x5B8C;&#x6574;&#x7684;&#x6E90;&#x7801;&#xFF0C;&#x6240;&#x4EE5;&#x4F60;&#x53EF;&#x4EE5;&#x6839;&#x636E;&#x81EA;&#x5DF1;&#x7684;&#x9700;&#x8981;&#x968F;&#x610F;&#x66F4;&#x6539;&#x3002;&#x800C;&#x4E14;&#x53EA;&#x8981;&#x4F60;&#x4F7F;&#x7528; LGPL &#x8DDF; EPL &#x534F;&#x8BAE;&#xFF0C;&#x4F60;&#x751A;&#x81F3;&#x53EF;&#x4EE5;&#x53D1;&#x5E03;&#x4F60;&#x66F4;&#x6539;&#x540E;&#x7684;&#x7248;&#x672C;&#x3002;</p>



                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: Introduction">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="02第二章架构.html" class="navigation navigation-next " aria-label="Next page: 第二章：架构">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"第一章：logback 介绍","level":"1.2","depth":1,"next":{"title":"第二章：架构","level":"1.3","depth":1,"path":"02第二章架构.md","ref":"02第二章架构.md","articles":[]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["add-js-css","myseo"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"add-js-css":{"js":["./lib/site.js"]},"myseo":{"description":"logback中文网包含了logback中文文档，最新资讯，应用案例等。logback 继承自 log4j，它建立在有十年工业经验的日志系统之上。它比其它所有的日志系统更快并且更小，包含了许多独特并且有用的特性。","keywords":"logback中文文档, logback api文档, logback log4j,springboot logback,logback日志类型","titlePrefix":"logback中文网|"},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","keywords":"","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"logback中文手册","gitbook":"*","description":""},"file":{"path":"01第一章logback介绍.md","mtime":"2019-02-23T06:45:16.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-02-24T03:19:05.191Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-add-js-css/fda70cfc36440304bb976a11f47eb151-site.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

